# coding=utf-8
from core.m_logging import logger


class Middleware(object):
    def __init__(self, process_method=None):
        # logger.info("into middleware root...")
        self.process_method = process_method

    def process(self, request):
        if self.process_method:
            self.process_method(request)
        return request